SparkSQL Adapter Limitations
The results of the string functions SUBSTR and SUBSTRING might differ between pushed and not pushed if the second argument (length) is negative.
The syntax of these functions are:
SUBSTR (string, start_position, length_of_substring)
SUBSTRING (string, start_position, length_of_substring)